<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>1213</title>
        <style>
            body{
                margin: 0;
                padding: 0;
            }
            div.container{
                position: relative;
                width: 100px;
            }
            div.right{
                position: absolute;
                right: 0px;
                width: 300px;
                background-color: #b0e0e6;
            }

        </style>
    </head>
    <body>
        <div class="container">
            <div class="right">
                <p><b>注意:</b>当使用浮动属性对齐,总是包括 !DOCTYPE 声明!如果丢失,它将会在 IE 浏览器产生奇怪的结果</p>
            </div>
        </div>
    </body>
</html>